<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主页 - 智慧洛龙管理系统</title>
    <style type="text/css">
        html,body {
            margin:0;
            height:100%;
        }
    </style>
    <script src="/static/js/common/CreateControl.6.6.js" type="text/javascript"></script>
    <script type="text/javascript">
        //在网页初始加载时向报表提供数据
        function window_onload() {
            ReportViewer.Stop();
            var Report = ReportViewer.Report;
            //执行董事
            Report.ParameterByName("directorName").AsString = "${director.name}";
            Report.ParameterByName("directorJob").AsString = "执行董事";
            Report.ParameterByName("directorCardType").AsString = "${decode(director.cardType,1,'身份证',2,'营业执照',3,'其他有效证件','身份证')}";
            Report.ParameterByName("directorCardNumber").AsString = "${director.cardNumber!}";
            Report.ControlByName("directorCardFrontPicture").AsPictureBox.ImageFile = "${uploaderFilesDomain!}${director.cardFrontPicture!}";
            Report.ControlByName("directorCardBackPicture").AsPictureBox.ImageFile = "${uploaderFilesDomain!}${director.cardBackPicture!}";
            //监事
            Report.ParameterByName("supervisorName").AsString = "${supervisor.name}";
            Report.ParameterByName("supervisorJob").AsString = "监事";
            Report.ParameterByName("supervisorCardType").AsString = "${decode(supervisor.cardType,1,'身份证',2,'营业执照',3,'其他有效证件','身份证')}";
            Report.ParameterByName("supervisorCardNumber").AsString = "${supervisor.cardNumber!}";
            Report.ControlByName("supervisorCardFrontPicture").AsPictureBox.ImageFile = "${uploaderFilesDomain!}${supervisor.cardFrontPicture!}";
            Report.ControlByName("supervisorCardBackPicture").AsPictureBox.ImageFile = "${uploaderFilesDomain!}${supervisor.cardBackPicture!}";
            //经理
            Report.ParameterByName("managerName").AsString = "${manager.name}";
            Report.ParameterByName("managerJob").AsString = "经理";
            Report.ParameterByName("managerCardType").AsString = "${decode(manager.cardType,1,'身份证',2,'营业执照',3,'其他有效证件','身份证')}";
            Report.ParameterByName("managerCardNumber").AsString = "${manager.cardNumber!}";
            Report.ControlByName("managerCardFrontPicture").AsPictureBox.ImageFile = "${uploaderFilesDomain!}${manager.cardFrontPicture!}";
            Report.ControlByName("managerCardBackPicture").AsPictureBox.ImageFile = "${uploaderFilesDomain!}${manager.cardBackPicture!}";
            ReportViewer.Start();
        }
    </script>
</head>

<body onload="window_onload()">
<script type="text/javascript">
    CreateDisplayViewerEx("100%", "100%", "/static/report/company/apply/supervisor.grf","",true, "");
</script>
</body>
</html>